package com.hs.dnms.dwr;

import com.hs.auth.model.HsAccount;
import com.hs.core.dwr.DwrHelper;

public class AuditDwr   extends DwrHelper{
	
	/**
	 * 审核
	 * @param username  用户名
	 * @param num 		分配案件个数
	 */
	public String audit(String id,String state){
		HsAccount accinfo = this.getCurrentuser(this.getHttpServletRequest());
		String message = "0"; 
		if(null != accinfo){
			int result = this.getDbo().update("update dnms_book set state=?,PICTUREPRODUCER=? where id=?",new Object[]{state,accinfo.getId(),id});
			message = "" + result;
 		}
		return message;
		
	}
}
